// sm3hash.h  
#ifndef SM3HASH_H  
#define SM3HASH_H  

#include <stddef.h>  

#ifdef __cplusplus  
extern "C" {  
#endif  

int sm3_hash(const unsigned char *message, size_t len, unsigned char *hash, unsigned int *hash_len);  

#ifdef __cplusplus  
}  
#endif  

#endif // SM3HASH_H